<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>站点创建成功-phpstudy for windows</title>
  <meta name="keywords" content="">
  <meta name="description" content="">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
  <meta HTTP-EQUIV="expires" CONTENT="0">
  <style>
    iframe{
      width:300px;
      height:50px;
      border:1px solid #ccc;
    }
    .text{
      width:300px;
      height:50px;
      border:1px solid #ccc;
    }
    .input{
      width:300px;
      height:50px;
      color:#fff;
      background-color:#337ab7;
      border:1px solid #ccc;
      margin-top:26x;
      margin-left:5px;
    }
  </style>
</head>
<body>
  <h1>聊天内容</h1>
  <iframe id="fr1"></iframe><br>
  <textarea name="content" id="content" class="text" placeholder="输入发送的内容"></textarea>
  <input type="button" value="发送" class="input" onclick="senMeg()"/>
</body>
<script>
  function senMeg(){
    var content=document.getElementById('content').value;
    var urlstr='chat.php?content='+content;
    document.getElementById('fr1').src=ulstr
  }
</script>
</html>